package com.shahouz.javaThreadPool;

/**
 * @ProjectName: javaThreadPool
 * @Package: com.shahouz.javaThreadPool
 * @Description: 描述
 * @Author: tdl
 * @CreateDate: 2018/8/23 下午5:05
 **/
public class Task implements Runnable {
    private String taskName = "default";

    Task(String name) {
        taskName = name;
    }
    public void run() {
        System.out.print("I am a new task '" + taskName + "'.\n");
    }
}
